package com.aysafety.eventmodel.dao;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface HydraulicSupportDao {
    void saveCal(Map<String, Object> param);

    /**
     * @Description: 查询液压支架实时数据
     * @Param: [params]
     * @return: int
     * @Author: ChengQi
     * @Date: 2019/2/13
     */
    List<Map<String, Object>> queryRealTimeByHydraulicSupport(Map<String, Object> parram);

    /**
    * @Description:  液压支架频次
    * @Param: [resultMap]
    * @return: void
    * @Author: ChengQi
    * @Date: 2019/2/21
    */
    void saveFrequency(Map<String, Object> resultMap);

    /** 
    * @Description:  
    * @Param: [resultMap] 
    * @return: void 
    * @Author: ChengQi 
    * @Date: 2019/2/21 
    */ 
    void saveFlicker(Map<String, Object> resultMap);


    /**
     * 查询闪烁间隔
     * @param params
     */
    List<Map<String, Object>> queryFlickerInterval(Map<String, Object> params);

    /**
     * 查询闪烁间隔实时
     * @param params
     */
    List<Map<String, Object>> queryFlickerIntervalRealtime(Map<String, Object> params);


    /**
     * 插入闪烁危险间隔值
     * @param data
     */
    void insertFlickerIntervalRisk(Map<String, Object> data);


    /**
     * 查询学习出来的临界值
     * @param data
     * @return
     */
    List<Map<String, Object>> queryHydraulicSupportStudy(Map<String, Object> data);


    /**
     * 查询频次
     * @param params
     * @return
     */
    List<Double> queryHydraulicSupportFrequency(Map<String, Object> params);


    /**
     * 查询闪烁
     * @param params
     * @return
     */
    List<Double> queryHydraulicSupportFlickerIntervalRisk(Map<String, Object> params);

    /**
     * 计算综合预警
     * @param resultMap
     */
    void saveWarning(Map<String, Object> resultMap);
}
